cmake_minimum_required(VERSION 3.17)
project(add_defs)

#add_definitions(-I/home/xlll/CMakeProjs/AddDefinitions/hello)
#add_definitions(-I/home/xlll/CMakeProjs/AddDefinitions/hello -DMY_DEF -DMY_DEF2=100)
add_definitions(-I/home/xlll/CMakeProjs/AddDefinitions/hello -DMY_DEF -DMY_DEF2=100 -Wall)

get_property(var DIRECTORY ${PROJECT_SOURCE_DIR} PROPERTY COMPILE_DEFINITIONS)
message(STATUS "var = ${var}")
add_executable(main main.cpp)
